<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="/resources/commons/basejs.jsp" %>
</head>
<body>
<div style="width: 400px;padding-top: 10px;">
    <form id="form_submit" class="layui-form">
        <div class="layui-form-item">
            <label class="layui-form-label">设备ID</label>
            <div class="layui-input-inline">
                <input type="text" name="name" lay-verify="required" placeholder="请输入设备ID" class="layui-input" value="">
            </div>
            <label class="layui-form-label">所属机构</label>
            <div class="layui-input-inline">
                <input type="text" name="jigou" lay-verify="required" placeholder="请输入设备所属机构" class="layui-input" value="">
            </div>
            <label class="layui-form-label">备注</label>
            <div class="layui-input-inline">
                <input type="text" name="type" lay-verify="required" placeholder="请输入备注" class="layui-input" value="">
            </div>
            <label class="layui-form-label">设备状态</label>
            <div class="layui-input-inline">
                <input type="radio" name="state" value="1" title="使用中">
                <input type="radio" name="state" value="2" title="未使用" checked>
            </div>

        </div>
        <div class="layui-form-item" style="display: none">
            <button type="button" lay-submit lay-filter="btn_form_submit" id="btn_form_submit" class="layui-btn layui-btn-lg"></button>
        </div>
    </form>
</div>
</body>
<script>
    var modleName = "${ctxPath}/shebei";
    //用layui加载数据
    function onLayuiInit() {
        //绑定监听表单提交事件
        bindSubmit(modleName,'add','btn_form_submit','form_submit');
    }
</script>
</html>














